<%@ page import="javax.naming.Context" %>
<%@ page import="javax.naming.InitialContext" %>
<%@ page import="edu.columbia.ubms.ejb.MainPageSessionBeanRemote" %>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<% 
	try {   
    Context ctx = new InitialContext();
    /*
    HelloWorldBeanRemote hello = (HelloWorldBeanRemote) ctx.lookup("HelloWorldBean/remote");
    out.println(hello.sayHello("홍길동"));
    */
    //BookTestBeanRemote beanRemote = (BookTestBeanRemote)ctx.lookup("BookTestBean/remote");
	//beanRemote.test();
	
	MainPageSessionBeanRemote beanRemote = (MainPageSessionBeanRemote)ctx.lookup("MainPageSessionBean/remote");
	beanRemote.userBookmarksGet(); 
} catch(Exception e) {
    out.println("Error:" + e.getMessage());
}
%>
</body>
</html>